<template>
  <div class="error-container">
    <a-result
      status="error"
      title="暂无权限"
      sub-title="您当前没有可管理的门店，请联系管理员添加门店权限。"
    >
      <template #extra>
        <a-button type="primary" @click="handleBack">返回登录页面</a-button>
      </template>
    </a-result>
  </div>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router';

const router = useRouter();

const handleBack = () => {
  router.push('/adLogin');
};
</script>

<style scoped>
.error-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f0f2f5;
}
</style>
